package cn.mw.feign;

import cn.mw.domain.Device;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


@Component
@FeignClient("service-device")
public interface DeviceFeign {
    @GetMapping("/device/getDevice/{floorId}")
    List<Device> getDevice(@PathVariable("floorId") String floorId);
}
